package com.example.lock;

import redis.clients.jedis.JedisPool;

/**
 * 分布式锁 测试类
 *
 * @author mingtian
 */
public class TestRedis {
    private static final int count = 1;

    private static JedisPool jedisPool;

    public static void main(String[] args) {
        //1.是用多线程模拟
        LockService lockService = new LockService();
        for (int i = 0; i < count; i++) {
            new RedisThread(lockService).start();
        }
    }
}
